package datastructure.list;

import datastructure.common.Person;

/**
 * @author cyt
 * @create 2020-11-18 20:16
 */
public class Test {
    public static void main(String[] args) {

        CyList<Person> cyList = new CyList<>();
        cyList.add(new Person(1, "fff"));
        cyList.add(new Person(2, "fff"));

        System.out.println(cyList.indexOf(new Person(2, "fff")));

        System.out.println(cyList);

        CyList<Integer> list = new CyList<>();
        list.add(4);
        list.clear();
        System.out.println(list);


        CyList2<Integer> list2 = new CyList2<>();
        for (int i = 0; i < 50; i++) {
            list2.add(i);
        }
        for (int i = 0; i < 50; i++) {
            list2.remove(0);
        }
        System.out.println(list2);
    }
}
